"""
常量定义
"""

datetime_pattern: str = '%Y-%m-%d %H:%M:%S'

date_pattern: str = '%Y-%m-%d'

time_pattern: str = '%H:%M:%S'

phone_pattern: str = r'^1[3-9]\d{9}$'

ip_pattern: str = r'^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$'

email_pattern = r"^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$"
